<!-- directive:title 关于项目跳转 $location 的详细整理 -->
<!-- directive:breadcrumb $location -->
<div class="panel-body">
    <div class='panel panel-default'>
        <div class='panel-heading'> $location </div>
        <div class='panel-body'>
            <article class="docs-content">
                <p>完整url路径: <span>{{absurl}}</span></p>
                <p>url路径(当前url#后面的内容,包括参数和哈希值): <span>{{url}}</span>
                    <button ng-click="changeUrl()">改变</button>
                </p>
                <p>相对路径(也就是当前url#后面的内容,不包括参数): <span>{{path}}</span>
                    <button ng-click="changePath()">改变</button>
                </p>
                <p>协议(比如http,https): <span>{{protocol}}</span></p>
                <p>主机名: <span>{{host}}</span></p>
                <p>端口号: <span>{{port}}</span></p>
                <p>哈希值: <span>{{hash}}</span>
                    <button ng-click="changeHash()">改变</button>
                </p>
                <p>search值序列化json:
                    <span>{{search}}</span>
                    <button ng-click="changeSearch_1()">改变1</button>
                    <button ng-click="changeSearch_2()">改变2</button>
                    <button ng-click="changeSearch_3()">改变3</button>
                    <button ng-click="changeSearch_4()">改变4</button>
                    <button ng-click="changeSearch_5()">改变5</button>
                    <button ng-click="changeSearch_6()">改变6</button>
                </p>
            </article>
        </div>
    </div>
</div>


